export default [
    {
        path: '/',
        name: 'home',
        redirect: '/login'
    },
    {
        meta: {
            title: '登录',
            noRequestApprove: true,
            keepAlive: false,
            isBack:false,
        },
        path: '/login',
        name:'login',
        component: resolve => require(['views/login'], resolve)
    },
    {
        meta: {
            noRequestApprove: false,
            keepAlive: false,
            isBack:false,
        },
        path: '/ads',
        name: 'ads',
        component: resolve => require(['views/index'], resolve),
        children: [
            {
                meta: {title: '广告管理', keepAlive:true,isBack:false,},
                path: 'admana',
                name:'admana',
                component: resolve => require(['views/ads/admana'], resolve),
            },
            {
                meta: {title: '数据中心', keepAlive:true,isBack:false,},
                path: 'datacenter',
                name:'datacenter',
                component: resolve => require(['views/ads/datacenter'], resolve),
            },
            {
                meta: {title: '财务中心', keepAlive:true,isBack:false,},
                path: 'finance',
                name:'finance',
                component: resolve => require(['views/ads/finance'], resolve),
            },
            {
                meta: {title: '查看创意', keepAlive:false,isBack:false,},
                path: 'admcheck',
                name:'admcheck',
                component: resolve => require(['views/ads/admcheck'], resolve),
            },
        ]
    },
    {
        path: '*',
        meta: {
            noRequestApprove: true
        },
        component: resolve => require(['views/404'], resolve)
    }
];
